﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="../JS/jquery.js"></script>
<script src="../JS/getcookie.js" ></script>
<script>
$(document).ready(function(){
	$("div").css("display","inline-block");
	$("p").css("display","inline-block");
	$("form").css("display","inline-block");

	$("#output")[0].innerHTML = "正在激活您的账号……";
	$.post("../PHP/activeuser.php" + location.search,{},
		function(data,status){
			
			if( data.substr(0,2) == "ok" )
			{
				setTimeout( "parent.location = 'login.htm'" ,1000);
				$("#output")[0].innerHTML = "亲爱的"+data.substring(2)+",恭喜您账号激活成功，正在为您跳转……";
			}
			else if( data == "has" )
			{
				setTimeout( "parent.location = 'login.htm'" ,1000);
				$("#output")[0].innerHTML = "账号已完成激活，正在为您跳转……";
			}
			else
			{
				$("#output")[0].innerHTML = "账号激活失败！\n"+data;
			}
	});
});
</script> 
</head>
 
<body>

<div>
	<p id="output">YES</p>
</div>

</body>
</html>